package com.fadadianqi.search;

import org.apache.lucene.analysis.Analyzer;
import org.wltea.analyzer.lucene.IKAnalyzer;

public class AnalyzerFactory {

    private static Analyzer analyzer;

    public static final Analyzer getInstance() {
        if (analyzer == null) {
            analyzer = new IKAnalyzer();
        }
        return analyzer;
    }
}
